import { createApp } from "vue";
import "@/assets/style/index.scss";
import App from "./App.vue";
import router from "@/router/index.js";

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 全局注册 antd
import Antd from "ant-design-vue";
import "ant-design-vue/dist/reset.css";

// 批量注册全局组件
import registerComponent from "@/components/index.js";

// 批量注册自定义指令
import registerDirective from "@/directives/index.js";


createApp(App)
  .use(Antd).use(ElementPlus)
  .use(registerDirective)
  .use(registerComponent)
  .use(router)
  .mount("#app");
